package com.ruoyi.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.mapper.ProductionMapper;
import com.ruoyi.product.domain.Production;
import com.ruoyi.product.service.IProductionService;

/**
 * productionManagementService业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-11
 */
@Service
public class ProductionServiceImpl implements IProductionService 
{
    @Autowired
    private ProductionMapper productionMapper;

    /**
     * 查询productionManagement
     * 
     * @param id productionManagement主键
     * @return productionManagement
     */
    @Override
    public Production selectProductionById(Long id)
    {
        return productionMapper.selectProductionById(id);
    }

    /**
     * 查询productionManagement列表
     * 
     * @param production productionManagement
     * @return productionManagement
     */
    @Override
    public List<Production> selectProductionList(Production production)
    {
        return productionMapper.selectProductionList(production);
    }

    /**
     * 新增productionManagement
     * 
     * @param production productionManagement
     * @return 结果
     */
    @Override
    public int insertProduction(Production production)
    {
        return productionMapper.insertProduction(production);
    }

    /**
     * 修改productionManagement
     * 
     * @param production productionManagement
     * @return 结果
     */
    @Override
    public int updateProduction(Production production)
    {
        return productionMapper.updateProduction(production);
    }

    /**
     * 批量删除productionManagement
     * 
     * @param ids 需要删除的productionManagement主键
     * @return 结果
     */
    @Override
    public int deleteProductionByIds(Long[] ids)
    {
        return productionMapper.deleteProductionByIds(ids);
    }

    /**
     * 删除productionManagement信息
     * 
     * @param id productionManagement主键
     * @return 结果
     */
    @Override
    public int deleteProductionById(Long id)
    {
        return productionMapper.deleteProductionById(id);
    }
}
